Accruent Meridian Enterprise 2020 VBScript API Reference

VBScript and Meridian PowerWeb

Not all VBScript functions are available to Meridian PowerWeb since it runs on the Meridian web server, not on the client computer.

Following are the major functions that are not available, with corresponding recommended workarounds.

VBScript functions not available in Meridian PowerWeb
Function Workaround

Global variables

Use object arguments instead as described in Object Arguments.

DebugAssert Function

Not supported

WinInputBox Function

Wizard page at the beginning of a batch process

WinMsgBox Function

FailCurrent Method or PrintDetails Method (if batch object is available)

Wizard page at the beginning of a batch process

ProjectWorkflowEvent_InitializeExpandItem and ProjectWorkflowEvent_BeforeExpandItem events

Not supported

Confirmation Property

Client Object Methods

CurrentView Property

Not yet available

Vault Events

None

AddDocumentToBatch Method and AddDocuments Method

Not yet available

Briefcase Object Import packages
DocGenericEvent_PrepareCommand Event Not yet available
DocGenericEvent_OnProperties Event when creating new folders Not yet available

DocGenericEvent_*Print Events

Not yet available

AS_PROP_CMD constants AS_PS_CMD_VIEW and AS_PS_CMD_CANCEL in the DocGenericEvent_OnProperties Event

Assign property validation conditions or use AS_PS_CMD_APPLY instead.

AS_NFO_SHOWWIZARD constant Not yet available.
Note:
  • The values of check boxes and radio buttons on Meridian PowerWeb pages are sent to the web server only if they are selected (True). Meridian Enterprise Boolean properties that have not been explicitly set to either True or False contain no value. For these reasons, we recommend that you always test the values of Boolean properties for True and never for False whether the script is for Meridian PowerWeb or not.
  • A script that is not compatible with Meridian PowerWeb will not generate an error message. Thoroughly test all VBScript configuration expressions and event procedures that might be invoked by Meridian PowerWeb.
  • We highly discourage programmatic formatting of dates for use in title blocks, especially if Meridian PowerWeb will be used. Dates are transferred over the Internet in a locale-independent format to accommodate the possibility that the web server and Meridian PowerWeb locales are different. We recommend that you use the date attribute formatting settings described in Formatting attribute date values instead.